import Vue from 'vue'
import Router from 'vue-router'
import ShoppingMall from '@/components/ShoppingMall'
import register from '@/components/register'
import login from '@/components/login'
import Goods from '@/components/Goods'
import CategoryList from '@/components/CategoryList'
import Cart from '@/components/Cart'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'ShoppingMall',
      component: ShoppingMall
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/Goods',
      name: 'Goods',
      component: Goods
    },
    {
      path: '/CategoryList',
      name: 'CategoryList',
      component: CategoryList //商品列表
    },
    {
      path: '/Cart',
      name: 'Cart',
      component: Cart //购物车
    },
  ]
})
